<template>
  <div>
    <!-- 地图 -->
    <gis-Map
      :ismenu="false"
      :fullscreen="false"
      @handlefullScreen="handlefullScreen"
    ></gis-Map>
  </div>
</template>

<script>
import gisMap from "./gis_Map.vue";
import api from "../../api/api";
import { useRouter, useRoute } from "vue-router";
import { useStore } from "vuex";
import { nextTick, onMounted, reactive, ref } from "vue";
export default {
  name: "dashboard",
  components: { gisMap },

  setup() {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const fullscreen = ref(route.query.fullscreen);
    const handlefullScreen = (fullscreen) => {
      store.commit("handleCollapse", true);
      router.push("/homepage?fullscreen=" + fullscreen);
    };
    return { fullscreen, handlefullScreen };
  },
};
</script>

<style lang="less" scoped></style>
